package com.scuec.groupfive.service.impl;

import com.scuec.groupfive.mapper.AnswerStatisticsMapper;
import com.scuec.groupfive.service.AnswerStatisticsService;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;

@Service
public class AnswerStatisticsServiceImpl implements AnswerStatisticsService {

    private final AnswerStatisticsMapper answerStatisticsMapper;

    public AnswerStatisticsServiceImpl(AnswerStatisticsMapper answerStatisticsMapper) {
        this.answerStatisticsMapper = answerStatisticsMapper;
    }

    @Override
    public List<Map<String, Object>> getSubjectAnswerStatistics() {
        return answerStatisticsMapper.getSubjectAnswerStatistics();
    }
}